package club.calong.sanniu.http.response;

import java.util.List;

public class ListResponseData<T> implements ResponseData {

    List<T> list;
    Long count;

    public ListResponseData(List<T> list, Long count) {
        this.list = list;
        this.count = count;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "ListResponseData{" +
                "list=" + list +
                ", count=" + count +
                '}';
    }
}
